CI_VERSION
CodeIgniter Version
public
string
CI_VERSION
= '3.1.11'
CodeIgniter Version
public
string
CI_VERSION
= '3.1.11'
public
mixed
GITHUB_ISSUE
= 797
Reference to the CI_Controller method.
get_instance() : CI_Controller
Returns current CI instance object
Determines if the current version of PHP is equal to or greater than the supplied value
is_php(mixed $version) : bool
Tests for file writability
is_really_writable(mixed $file) : bool
is_writable() returns TRUE on Windows servers when you really can't write to the file, based on the read-only attribute. is_writable() is also unreliable on Unix servers if safe_mode is on.
Class registry
load_class(mixed $class[, mixed $directory = 'libraries' ][, mixed $param = NULL ]) : object
This function acts as a singleton. If the requested class does not exist it is instantiated and set to a static variable. If it has previously been instantiated the variable is returned.
Keeps track of which libraries have been loaded. This function is called by the load_class() function above
is_loaded([mixed $class = '' ]) : array<string|int, mixed>
Loads the main config.php file
get_config([array<string|int, mixed> $replace = array() ]) : array<string|int, mixed>
This function lets us grab the config file even if the Config class hasn't been instantiated yet
Returns the specified config item
config_item(mixed $item) : mixed
Returns the MIME types array from config/mimes.php
get_mimes() : array<string|int, mixed>
Is HTTPS?
is_https() : bool
Determines if the application is accessed via an encrypted (HTTPS) connection.
Is CLI?
is_cli() : bool
Test to see if a request was made from the command line.
Error Handler
show_error(mixed $message[, mixed $status_code = 500 ][, mixed $heading = 'An Error Was Encountered' ]) : void
This function lets us invoke the exception class and display errors using the standard error template located in application/views/errors/error_general.php This function will send the error page directly to the browser and exit.
404 Page Handler
show_404([mixed $page = '' ][, mixed $log_error = TRUE ]) : void
This function is similar to the show_error() function above However, instead of the standard error template it displays 404 errors.
Error Logging Interface
log_message(mixed $level, mixed $message) : void
We use this as a simple mechanism to access the logging class and send messages to be logged.
Set HTTP Status Header
set_status_header([mixed $code = 200 ][, mixed $text = '' ]) : void
Error Handler
_error_handler(int $severity, string $message, string $filepath, int $line) : void
This is the custom error handler that is declared at the (relative) top of CodeIgniter.php. The main reason we use this is to permit PHP errors to be logged in our own log files since the user may not have access to server logs. Since this function effectively intercepts PHP errors, however, we also need to display errors based on the current error_reporting level. We do that with the use of a PHP error template.
Exception Handler
_exception_handler(Exception $exception) : void
Sends uncaught exceptions to the logger and displays them only if display_errors is On so that they don't show up in production environments.
Shutdown Handler
_shutdown_handler() : void
This is the shutdown handler that is declared at the top of CodeIgniter.php. The main reason we use this is to simulate a complete custom exception handler.
E_STRICT is purposively neglected because such events may have been caught. Duplication or none? None is preferred for now.
Remove Invisible Characters
remove_invisible_characters(mixed $str[, mixed $url_encoded = TRUE ]) : string
This prevents sandwiching null characters between ascii characters, like Java\0script.
Returns HTML escaped variable.
html_escape(mixed $var[, bool $double_encode = TRUE ]) : mixed
The input string or array of strings to be escaped.
$double_encode set to FALSE prevents escaping twice.
Stringify attributes for use in HTML tags.
_stringify_attributes(mixed $attributes[, mixed $js = FALSE ]) : string
Helper function used to convert a string, array, or object of attributes to a string.
Function usable
function_usable(string $function_name) : bool
Executes a function_exists() check, and if the Suhosin PHP extension is loaded - checks whether the function that is checked might be disabled in there as well.
This is useful as function_exists() will return FALSE for functions disabled via the disable_functions php.ini setting, but not for suhosin.executor.func.blacklist and suhosin.executor.disable_eval. These settings will just terminate script execution if a disabled function is executed.
The above described behavior turned out to be a bug in Suhosin, but even though a fix was committed for 0.9.34 on 2012-02-12, that version is yet to be released. This function will therefore be just temporary, but would probably be kept for a few years.
Function to check for
hash_equals()
hash_equals(string $known_string, string $user_string) : bool
hash_pbkdf2()
hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length[, bool $raw_output = FALSE ]) : string
mb_strlen()
mb_strlen(string $str[, string $encoding = NULL ]) : int
WARNING: This function WILL fall-back to strlen() if iconv is not available!
mb_strpos()
mb_strpos(string $haystack, string $needle, int $offset[, string $encoding = NULL ]) : mixed
WARNING: This function WILL fall-back to strpos() if iconv is not available!
mb_substr()
mb_substr(string $str, int $start[, int $length = NULL ][, string $encoding = NULL ]) : string
WARNING: This function WILL fall-back to substr() if iconv is not available.
password_get_info()
password_get_info(string $hash) : array<string|int, mixed>
password_hash()
password_hash(string $password, int $algo[, array<string|int, mixed> $options = array() ]) : mixed
password_needs_rehash()
password_needs_rehash(string $hash, int $algo[, array<string|int, mixed> $options = array() ]) : bool
password_verify()
password_verify(string $password, string $hash) : bool
array_column()
array_column(array<string|int, mixed> $array, mixed $column_key[, mixed $index_key = NULL ]) : array<string|int, mixed>
hex2bin()
hex2bin(string $data) : string
Initialize the database
DB([string|array<string|int, string> $params = '' ][, bool $query_builder_override = NULL ]) : mixed
Determines if query builder should be used or not
ODBC Fetch array
odbc_fetch_array(resource &$result[, int $rownumber = 1 ]) : array<string|int, mixed>
Emulates the native odbc_fetch_array() function when it is not available (odbc_fetch_array() requires unixODBC)
ODBC Fetch object
odbc_fetch_object(resource &$result[, int $rownumber = 1 ]) : object
Emulates the native odbc_fetch_object() function when it is not available.
Element
element(mixed $item, array<string|int, mixed> $array[, mixed $default = NULL ]) : mixed
Lets you determine whether an array index is set and whether it has a value. If the element is empty it returns NULL (or whatever you specify as the default value.)
Random Element - Takes an array as input and returns a random element
random_element(mixed $array) : mixed
Elements
elements(mixed $items, array<string|int, mixed> $array[, mixed $default = NULL ]) : mixed
Returns only the array items specified. Will return a default value if it is not set.
Create CAPTCHA
create_captcha([array<string|int, mixed> $data = '' ][, string $img_path = '' ][, string $img_url = '' ][, string $font_path = '' ]) : string
Data for the CAPTCHA
Path to create the image in (deprecated)
URL to the CAPTCHA image folder (deprecated)
Server path to font (deprecated)
Set cookie
set_cookie(mixed $name[, mixed $value = '' ][, mixed $expire = '' ][, mixed $domain = '' ][, mixed $path = '/' ][, mixed $prefix = '' ][, mixed $secure = NULL ][, mixed $httponly = NULL ]) : void
Accepts seven parameters, or you can submit an associative array in the first parameter containing all the values.
Fetch an item from the COOKIE array
get_cookie(mixed $index[, mixed $xss_clean = NULL ]) : mixed
Delete a COOKIE
delete_cookie(mixed $name[, mixed $domain = '' ][, mixed $path = '/' ][, mixed $prefix = '' ]) : void
Get "now" time
now([mixed $timezone = NULL ]) : int
Returns time() based on the timezone parameter or on the "time_reference" setting
Convert MySQL Style Datecodes
mdate([mixed $datestr = '' ][, mixed $time = '' ]) : int
This function is identical to PHPs date() function, except that it allows date codes to be formatted using the MySQL style, where each code letter is preceded with a percent sign: %Y %m %d etc...
The benefit of doing dates this way is that you don't have to worry about escaping your text letters that match the date codes.
Standard Date
standard_date([string $fmt = 'DATE_RFC822' ][, int $time = NULL ]) : string
Returns a date formatted according to the submitted standard.
As of PHP 5.2, the DateTime extension provides constants that serve for the exact same purpose and are used with date().
= 'DATE_RFC822' the chosen format
= NULL Unix timestamp
Timespan
timespan([mixed $seconds = 1 ][, mixed $time = '' ][, mixed $units = 7 ]) : string
Returns a span of seconds in this format: 10 days 14 hours 36 minutes 47 seconds
Number of days in a month
days_in_month(mixed $month[, mixed $year = '' ]) : int
Takes a month/year as input and returns the number of days for the given month/year. Takes leap years into consideration.
Converts a local Unix timestamp to GMT
local_to_gmt([mixed $time = '' ]) : int
Converts GMT time to a localized value
gmt_to_local([mixed $time = '' ][, mixed $timezone = 'UTC' ][, mixed $dst = FALSE ]) : int
Takes a Unix timestamp (in GMT) as input, and returns at the local value based on the timezone and DST setting submitted
Converts a MySQL Timestamp to Unix
mysql_to_unix([mixed $time = '' ]) : int
Unix to "Human"
unix_to_human([mixed $time = '' ][, mixed $seconds = FALSE ][, mixed $fmt = 'us' ]) : string
Formats Unix timestamp to the following prototype: 2006-08-21 11:35 PM
Convert "human" date to GMT
human_to_unix([mixed $datestr = '' ]) : int
Reverses the above process
Turns many "reasonably-date-like" strings into something that is actually useful. This only works for dates after unix epoch.
nice_date([mixed $bad_date = '' ][, mixed $format = FALSE ]) : string
Timezone Menu
timezone_menu([mixed $default = 'UTC' ][, mixed $class = '' ][, mixed $name = 'timezones' ][, mixed $attributes = '' ]) : string
Generates a drop-down menu of timezones.
Timezones
timezones([mixed $tz = '' ]) : string
Returns an array of timezones. This is a helper function for various other ones in this library
Date range
date_range([mixed $unix_start = '' ][, mixed $mixed = '' ][, mixed $is_unix = TRUE ][, mixed $format = 'Y-m-d' ]) : array<string|int, mixed>
Returns a list of dates within a specified period.
Create a Directory Map
directory_map(string $source_dir, int $directory_depth[, bool $hidden = FALSE ]) : array<string|int, mixed>
Reads the specified directory and builds an array representation of it. Sub-folders contained with the directory will be mapped as well.
Path to source
Depth of directories to traverse (0 = fully recursive, 1 = current dir, etc)
Whether to show hidden files
Force Download
force_download([mixed $filename = '' ][, mixed $data = '' ][, mixed $set_mime = FALSE ]) : void
Generates headers that force a download to happen
Validate email address
valid_email(string $email) : bool
Send an email
send_email(string $recipient, string $subject, string $message) : bool
Read File
read_file(string $file) : string
Opens the file specified in the path and returns it as a string.
Path to file
Write File
write_file(string $path, string $data[, string $mode = 'wb' ]) : bool
Writes data to the file specified in the path. Creates a new file if non-existent.
File path
Data to write
fopen() mode (default: 'wb')
Delete Files
delete_files(string $path[, bool $del_dir = FALSE ][, bool $htdocs = FALSE ], int $_level) : bool
Deletes all files contained in the supplied directory path. Files must be writable or owned by the system in order to be deleted. If the second parameter is set to TRUE, any directories contained within the supplied base directory will be nuked as well.
File path
Whether to delete any directories found in the path
Whether to skip deleting .htaccess and index page files
Current directory depth level (default: 0; internal use only)
Get Filenames
get_filenames(mixed $source_dir[, mixed $include_path = FALSE ][, mixed $_recursion = FALSE ]) : array<string|int, mixed>
Reads the specified directory and builds an array containing the filenames. Any sub-folders contained within the specified path are read as well.
Get Directory File Information
get_dir_file_info(mixed $source_dir[, mixed $top_level_only = TRUE ][, mixed $_recursion = FALSE ]) : array<string|int, mixed>
Reads the specified directory and builds an array containing the filenames, filesize, dates, and permissions
Any sub-folders contained within the specified path are read as well.
Get File Info
get_file_info(mixed $file[, mixed $returned_values = array('name', 'server_path', 'size', 'date') ]) : array<string|int, mixed>
Given a file and path, returns the name, path, size, date modified Second parameter allows you to explicitly declare what information you want returned Options are: name, server_path, size, date, readable, writable, executable, fileperms Returns FALSE if the file cannot be found.
Get Mime by Extension
get_mime_by_extension(string $filename) : string
Translates a file extension into a mime type based on config/mimes.php. Returns FALSE if it can't determine the type, or open the mime config file
Note: this is NOT an accurate way of determining file mime types, and is here strictly as a convenience It should NOT be trusted, and should certainly NOT be used for security
File name
Symbolic Permissions
symbolic_permissions(int $perms) : string
Takes a numeric value representing a file's permissions and returns standard symbolic notation representing that value
Permissions
Octal Permissions
octal_permissions(int $perms) : string
Takes a numeric value representing a file's permissions and returns a three character string representing the file's octal permissions
Permissions
Form Declaration
form_open([mixed $action = '' ][, mixed $attributes = array() ][, mixed $hidden = array() ]) : string
Creates the opening portion of the form.
Form Declaration - Multipart type
form_open_multipart([mixed $action = '' ][, mixed $attributes = array() ][, mixed $hidden = array() ]) : string
Creates the opening portion of the form, but with "multipart/form-data".
Hidden Input Field
form_hidden(mixed $name[, string $value = '' ][, bool $recursing = FALSE ]) : string
Generates hidden fields. You can pass a simple key/value string or an associative array with multiple values.
Field name
Field value
Text Input Field
form_input([mixed $data = '' ][, mixed $value = '' ][, mixed $extra = '' ]) : string
Password Field
form_password([mixed $data = '' ][, mixed $value = '' ][, mixed $extra = '' ]) : string
Identical to the input function but adds the "password" type
Upload Field
form_upload([mixed $data = '' ][, mixed $value = '' ][, mixed $extra = '' ]) : string
Identical to the input function but adds the "file" type
Textarea field
form_textarea([mixed $data = '' ][, string $value = '' ][, mixed $extra = '' ]) : string
Multi-select menu
form_multiselect([mixed $name = '' ][, mixed $options = array() ][, mixed $selected = array() ][, mixed $extra = '' ]) : string
Drop-down Menu
form_dropdown([mixed $data = '' ][, mixed $options = array() ][, mixed $selected = array() ][, mixed $extra = '' ]) : string
Checkbox Field
form_checkbox([mixed $data = '' ][, mixed $value = '' ][, mixed $checked = FALSE ][, mixed $extra = '' ]) : string
Radio Button
form_radio([mixed $data = '' ][, mixed $value = '' ][, mixed $checked = FALSE ][, mixed $extra = '' ]) : string
Submit Button
form_submit([mixed $data = '' ][, mixed $value = '' ][, mixed $extra = '' ]) : string
Reset Button
form_reset([mixed $data = '' ][, mixed $value = '' ][, mixed $extra = '' ]) : string
Form Button
form_button([mixed $data = '' ][, mixed $content = '' ][, mixed $extra = '' ]) : string
Form Label Tag
form_label([mixed $label_text = '' ][, mixed $id = '' ][, mixed $attributes = array() ]) : string
Fieldset Tag
form_fieldset([mixed $legend_text = '' ][, mixed $attributes = array() ]) : string
Used to produce
Fieldset Close Tag
form_fieldset_close([mixed $extra = '' ]) : string
Form Close Tag
form_close([mixed $extra = '' ]) : string
Form Prep
form_prep(string|array<string|int, string> $str) : string|array<string|int, string>
Formats text so that it can be safely placed in a form field in the event it has HTML tags.
Value to escape
Form Value
set_value(string $field[, string $default = '' ][, bool $html_escape = TRUE ]) : string
Grabs a value from the POST array for the specified field so you can re-populate an input field or textarea. If Form Validation is active it retrieves the info from the validation class
Field name
Default value
Whether to escape HTML special characters or not
Set Select
set_select(mixed $field[, mixed $value = '' ][, mixed $default = FALSE ]) : string
Let's you set the selected value of a
Set Checkbox
set_checkbox(mixed $field[, mixed $value = '' ][, mixed $default = FALSE ]) : string
Let's you set the selected value of a checkbox via the value in the POST array. If Form Validation is active it retrieves the info from the validation class
Set Radio
set_radio(string $field[, string $value = '' ][, bool $default = FALSE ]) : string
Let's you set the selected value of a radio field via info in the POST array. If Form Validation is active it retrieves the info from the validation class
Form Error
form_error([mixed $field = '' ][, mixed $prefix = '' ][, mixed $suffix = '' ]) : string
Returns the error for a specific form field. This is a helper for the form validation class.
Validation Error String
validation_errors([mixed $prefix = '' ][, mixed $suffix = '' ]) : string
Returns all the errors associated with a form submission. This is a helper function for the form validation class.
Parse the form attributes
_parse_form_attributes(array<string|int, mixed> $attributes, array<string|int, mixed> $default) : string
Helper function used by some of the form helpers
List of attributes
Default values
Attributes To String
_attributes_to_string(mixed $attributes) : string
Helper function used by some of the form helpers
Validation Object
_get_validation_object() : mixed
Determines what the form validation class was instantiated as, fetches the object and returns it.
Heading
heading([mixed $data = '' ][, mixed $h = '1' ][, mixed $attributes = '' ]) : string
Generates an HTML heading tag.
Unordered List
ul(mixed $list[, mixed $attributes = '' ]) : string
Generates an HTML unordered list from an single or multi-dimensional array.
Ordered List
ol(mixed $list[, mixed $attributes = '' ]) : string
Generates an HTML ordered list from an single or multi-dimensional array.
Generates the list
_list([mixed $type = 'ul' ][, mixed $list = array() ][, mixed $attributes = '' ], mixed $depth) : string
Generates an HTML ordered list from an single or multi-dimensional array.
Image
img([mixed $src = '' ][, mixed $index_page = FALSE ][, mixed $attributes = '' ]) : string
Generates an element
Doctype
doctype([mixed $type = 'xhtml1-strict' ]) : string
Generates a page document type declaration
Examples of valid options: html5, xhtml-11, xhtml-strict, xhtml-trans, xhtml-frame, html4-strict, html4-trans, and html4-frame. All values are saved in the doctypes config file.
Link
link_tag([mixed $href = '' ][, mixed $rel = 'stylesheet' ][, mixed $type = 'text/css' ][, mixed $title = '' ][, mixed $media = '' ][, mixed $index_page = FALSE ]) : string
Generates link to a CSS file
Generates meta tags from an array of key/values
meta([mixed $name = '' ][, mixed $content = '' ][, mixed $type = 'name' ][, mixed $newline = "
" ]) : string
Generates HTML BR tags based on number supplied
br([int $count = 1 ]) : string
Number of times to repeat the tag
Generates non-breaking space entities based on number supplied
nbs([mixed $num = 1 ]) : string
Singular
singular(string $str) : string
Takes a plural word and makes it singular
Input string
Plural
plural(string $str) : string
Takes a singular word and makes it plural
Input string
Camelize
camelize(string $str) : string
Takes multiple words separated by spaces or underscores and camelizes them
Input string
Underscore
underscore(string $str) : string
Takes multiple words separated by spaces and underscores them
Input string
Humanize
humanize(string $str[, string $separator = '_' ]) : string
Takes multiple words separated by the separator and changes them to spaces
Input string
Input separator
Checks if the given word has a plural version.
word_is_countable(string $word) : bool
Word to check
is_countable(mixed $word) : mixed
Lang
lang(string $line[, string $for = '' ][, array<string|int, mixed> $attributes = array() ]) : string
Fetches a language variable and optionally outputs a form label
The language line
The "for" value (id of the form element)
Any additional HTML attributes
Formats a numbers as bytes, based on size, and adds the appropriate suffix
byte_format(mixed $num[, mixed $precision = 1 ]) : string
Set Realpath
set_realpath(mixed $path[, mixed $check_existance = FALSE ]) : string
XSS Filtering
xss_clean(mixed $str[, mixed $is_image = FALSE ]) : string
Sanitize Filename
sanitize_filename(mixed $filename) : string
Hash encode a string
do_hash(string $str[, string $type = 'sha1' ]) : string
= 'sha1'
Strip Image Tags
strip_image_tags(mixed $str) : string
Convert PHP tags to entities
encode_php_tags(mixed $str) : string
Smiley Javascript
smiley_js([mixed $alias = '' ][, mixed $field_id = '' ][, mixed $inline = TRUE ]) : array<string|int, mixed>
Returns the javascript required for the smiley insertion. Optionally takes an array of aliases to loosely couple the smiley array to the view.
Get Clickable Smileys
get_clickable_smileys(mixed $image_url[, mixed $alias = '' ]) : array<string|int, mixed>
Returns an array of image tag links that can be clicked to be inserted into a form field.
Parse Smileys
parse_smileys([mixed $str = '' ][, mixed $image_url = '' ][, mixed $smileys = NULL ]) : string
Takes a string as input and swaps any contained smileys for the actual image
Get Smiley Array
_get_smiley_array() : mixed
Fetches the config/smiley.php file
Trim Slashes
trim_slashes(mixed $str) : string
Removes any leading/trailing slashes from a string:
/this/that/theother/
becomes:
this/that/theother
Strip Slashes
strip_slashes(mixed $str) : mixed
Removes slashes contained in a string or in an array
Strip Quotes
strip_quotes(mixed $str) : string
Removes single and double quotes from a string
Quotes to Entities
quotes_to_entities(mixed $str) : string
Converts single and double quotes to entities
Reduce Double Slashes
reduce_double_slashes(mixed $str) : string
Converts double slashes in a string to a single slash, except those found in http://
http://www.some-site.com//index.php
becomes:
http://www.some-site.com/index.php
Reduce Multiples
reduce_multiples(mixed $str[, mixed $character = ',' ][, mixed $trim = FALSE ]) : string
Reduces multiple instances of a particular character. Example:
Fred, Bill,, Joe, Jimmy
becomes:
Fred, Bill, Joe, Jimmy
Create a "Random" String
random_string([mixed $type = 'alnum' ][, mixed $len = 8 ]) : string
Add's _1 to a string or increment the ending number to allow _2, _3, etc
increment_string(mixed $str[, mixed $separator = '_' ][, mixed $first = 1 ]) : string
Alternator
alternator() : string
Allows strings to be alternated. See docs...
Repeater function
repeater(string $data[, int $num = 1 ]) : string
String to repeat
Number of repeats
Word Limiter
word_limiter(mixed $str[, mixed $limit = 100 ][, mixed $end_char = '…' ]) : string
Limits a string to X number of words.
Character Limiter
character_limiter(mixed $str[, mixed $n = 500 ][, mixed $end_char = '…' ]) : string
Limits the string based on the character count. Preserves complete words so the character count may not be exactly as specified.
High ASCII to Entities
ascii_to_entities(string $str) : string
Converts high ASCII text and MS Word special characters to character entities
Entities to ASCII
entities_to_ascii(mixed $str[, mixed $all = TRUE ]) : string
Converts character entities back to ASCII
Word Censoring Function
word_censor(mixed $str, mixed $censored[, mixed $replacement = '' ]) : string
Supply a string and an array of disallowed words and any matched words will be converted to #### or to the replacement word you've submitted.
Code Highlighter
highlight_code(mixed $str) : string
Colorizes code strings
Phrase Highlighter
highlight_phrase(string $str, string $phrase[, string $tag_open = '<mark>' ][, string $tag_close = '</mark>' ]) : string
Highlights a phrase within a text string
the text string
the phrase you'd like to highlight
the openging tag to precede the phrase with
the closing tag to end the phrase with
Convert Accented Foreign Characters to ASCII
convert_accented_characters(string $str) : string
Input string
Word Wrap
word_wrap(string $str[, int $charlim = 76 ]) : string
Wraps text at the specified character. Maintains the integrity of words. Anything placed between {unwrap}{/unwrap} will not be word wrapped, nor will URLs.
the text string
= 76 the number of characters to wrap at
Ellipsize String
ellipsize(mixed $str, mixed $max_length[, mixed $position = 1 ][, mixed $ellipsis = '…' ]) : string
This function will strip tags from a string, split it at its max_length and ellipsize
Convert newlines to HTML line breaks except within PRE tags
nl2br_except_pre(mixed $str) : string
Auto Typography Wrapper Function
auto_typography(string $str[, bool $reduce_linebreaks = FALSE ]) : string
= FALSE whether to reduce multiple instances of double newlines to two
HTML Entities Decode
entity_decode(mixed $str[, mixed $charset = NULL ]) : string
This function is a replacement for html_entity_decode()
Site URL
site_url([string $uri = '' ][, string $protocol = NULL ]) : string
Create a local URL based on your basepath. Segments can be passed via the first parameter either as a string or an array.
Base URL
base_url([string $uri = '' ][, string $protocol = NULL ]) : string
Create a local URL based on your basepath. Segments can be passed in as a string or an array, same as site_url or a URL to a file can be passed in, e.g. to an image file.
Current URL
current_url() : string
Returns the full URL (including segments) of the page where this function is placed
URL String
uri_string() : string
Returns the URI segments.
Index page
index_page() : string
Returns the "index_page" from your config file
Anchor Link
anchor([mixed $uri = '' ][, mixed $title = '' ][, mixed $attributes = '' ]) : string
Creates an anchor based on the local URL.
Anchor Link - Pop-up version
anchor_popup([mixed $uri = '' ][, mixed $title = '' ][, mixed $attributes = FALSE ]) : string
Creates an anchor based on the local URL. The link opens a new window based on the attributes specified.
Mailto Link
mailto(mixed $email[, mixed $title = '' ][, mixed $attributes = '' ]) : string
Encoded Mailto Link
safe_mailto(mixed $email[, mixed $title = '' ][, mixed $attributes = '' ]) : string
Create a spam-protected mailto link written in Javascript
Auto-linker
auto_link(mixed $str[, mixed $type = 'both' ][, mixed $popup = FALSE ]) : string
Automatically links URL and Email addresses. Note: There's a bit of extra code here to deal with URLs or emails that end in a period. We'll strip these off and add them after the link.
Prep URL
prep_url([mixed $str = '' ]) : string
Simply adds the http:// part if no scheme is included
Create URL Title
url_title(string $str[, string $separator = '-' ][, bool $lowercase = FALSE ]) : string
Takes a "title" string as input and creates a human-friendly URL string with a "separator" string as the word separator.
Input string
Word separator (usually '-' or '_')
Whether to transform the output string to lowercase
Header Redirect
redirect([string $uri = '' ][, string $method = 'auto' ][, int $code = NULL ]) : void
Header redirect in two flavors For very fine grained control over headers, you could use the Output Library's set_header() function.
URL
Redirect method 'auto', 'location' or 'refresh'
HTTP Response status code
Convert Reserved XML characters to Entities
xml_convert(mixed $str[, mixed $protect_all = FALSE ]) : string
Helper function to test boolean TRUE
is_true(mixed $test) : bool
Helper function to test boolean FALSE
is_false(mixed $test) : bool
google_api_php_client_autoload(mixed $className) : mixed
composerRequire5548262e0da75cc442a09c4a1c1aabda(mixed $fileIdentifier, mixed $file) : mixed
oauth2client_php_autoload(mixed $className) : mixed
globalFunction() : mixed
baz() : mixed
baz() : mixed
foo(mixed $bar) : mixed
foo(mixed $a, array<string|int, mixed> $b[, array<string|int, mixed> $c = array() ]) : mixed
Returns a matcher that matches when the method is executed zero or more times.
any() : PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount
Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
anything() : PHPUnit_Framework_Constraint_IsAnything
Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
arrayHasKey(mixed $key) : PHPUnit_Framework_Constraint_ArrayHasKey
Asserts that an array has a specified key.
assertArrayHasKey(mixed $key, array<string|int, mixed>|ArrayAccess $array[, string $message = '' ]) : mixed
Asserts that an array has a specified subset.
assertArraySubset(array<string|int, mixed>|ArrayAccess $subset, array<string|int, mixed>|ArrayAccess $array[, bool $strict = false ][, string $message = '' ]) : mixed
Check for object identity
Asserts that an array does not have a specified key.
assertArrayNotHasKey(mixed $key, array<string|int, mixed>|ArrayAccess $array[, string $message = '' ]) : mixed
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains a needle.
assertAttributeContains(mixed $needle, string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ][, bool $ignoreCase = false ][, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : mixed
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains only values of a given type.
assertAttributeContainsOnly(string $type, string $haystackAttributeName, mixed $haystackClassOrObject[, bool $isNativeType = null ][, string $message = '' ]) : mixed
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
assertAttributeCount(int $expectedCount, string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ]) : mixed
Asserts that a static attribute of a class or an attribute of an object is empty.
assertAttributeEmpty(string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ]) : mixed
Asserts that a variable is equal to an attribute of an object.
assertAttributeEquals(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ][, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that an attribute is greater than another value.
assertAttributeGreaterThan(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is greater than or equal to another value.
assertAttributeGreaterThanOrEqual(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is of a given type.
assertAttributeInstanceOf(string $expected, string $attributeName, mixed $classOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is of a given type.
assertAttributeInternalType(string $expected, string $attributeName, mixed $classOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is smaller than another value.
assertAttributeLessThan(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is smaller than or equal to another value.
assertAttributeLessThanOrEqual(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain a needle.
assertAttributeNotContains(mixed $needle, string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ][, bool $ignoreCase = false ][, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : mixed
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain only values of a given type.
assertAttributeNotContainsOnly(string $type, string $haystackAttributeName, mixed $haystackClassOrObject[, bool $isNativeType = null ][, string $message = '' ]) : mixed
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
assertAttributeNotCount(int $expectedCount, string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ]) : mixed
Asserts that a static attribute of a class or an attribute of an object is not empty.
assertAttributeNotEmpty(string $haystackAttributeName, mixed $haystackClassOrObject[, string $message = '' ]) : mixed
Asserts that a variable is not equal to an attribute of an object.
assertAttributeNotEquals(mixed $expected, string $actualAttributeName, string $actualClassOrObject[, string $message = '' ][, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that an attribute is of a given type.
assertAttributeNotInstanceOf(string $expected, string $attributeName, mixed $classOrObject[, string $message = '' ]) : mixed
Asserts that an attribute is of a given type.
assertAttributeNotInternalType(string $expected, string $attributeName, mixed $classOrObject[, string $message = '' ]) : mixed
Asserts that a variable and an attribute of an object do not have the same type and value.
assertAttributeNotSame(mixed $expected, string $actualAttributeName, object $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that a variable and an attribute of an object have the same type and value.
assertAttributeSame(mixed $expected, string $actualAttributeName, object $actualClassOrObject[, string $message = '' ]) : mixed
Asserts that a class has a specified attribute.
assertClassHasAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Asserts that a class has a specified static attribute.
assertClassHasStaticAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Asserts that a class does not have a specified attribute.
assertClassNotHasAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Asserts that a class does not have a specified static attribute.
assertClassNotHasStaticAttribute(string $attributeName, string $className[, string $message = '' ]) : mixed
Asserts that a haystack contains a needle.
assertContains(mixed $needle, mixed $haystack[, string $message = '' ][, bool $ignoreCase = false ][, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : mixed
Asserts that a haystack contains only values of a given type.
assertContainsOnly(string $type, mixed $haystack[, bool $isNativeType = null ][, string $message = '' ]) : mixed
Asserts that a haystack contains only instances of a given classname
assertContainsOnlyInstancesOf(string $classname, array<string|int, mixed>|Traversable $haystack[, string $message = '' ]) : mixed
Asserts the number of elements of an array, Countable or Traversable.
assertCount(int $expectedCount, mixed $haystack[, string $message = '' ]) : mixed
Asserts that a variable is empty.
assertEmpty(mixed $actual[, string $message = '' ]) : mixed
Asserts that a hierarchy of DOMElements matches.
assertEqualXMLStructure(DOMElement $expectedElement, DOMElement $actualElement[, bool $checkAttributes = false ][, string $message = '' ]) : mixed
Asserts that two variables are equal.
assertEquals(mixed $expected, mixed $actual[, string $message = '' ][, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a condition is not true.
assertNotTrue(bool $condition[, string $message = '' ]) : mixed
Asserts that a condition is false.
assertFalse(bool $condition[, string $message = '' ]) : mixed
Asserts that the contents of one file is equal to the contents of another file.
assertFileEquals(string $expected, string $actual[, string $message = '' ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a file exists.
assertFileExists(string $filename[, string $message = '' ]) : mixed
Asserts that the contents of one file is not equal to the contents of another file.
assertFileNotEquals(string $expected, string $actual[, string $message = '' ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a file does not exist.
assertFileNotExists(string $filename[, string $message = '' ]) : mixed
Asserts that a value is greater than another value.
assertGreaterThan(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a value is greater than or equal to another value.
assertGreaterThanOrEqual(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is of a given type.
assertInstanceOf(string $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is of a given type.
assertInternalType(string $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a string is a valid JSON string.
assertJson(string $actualJson[, string $message = '' ]) : mixed
Asserts that two JSON files are equal.
assertJsonFileEqualsJsonFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Asserts that two JSON files are not equal.
assertJsonFileNotEqualsJsonFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Asserts that the generated JSON encoded object and the content of the given file are equal.
assertJsonStringEqualsJsonFile(string $expectedFile, string $actualJson[, string $message = '' ]) : mixed
Asserts that two given JSON encoded objects or arrays are equal.
assertJsonStringEqualsJsonString(string $expectedJson, string $actualJson[, string $message = '' ]) : mixed
Asserts that the generated JSON encoded object and the content of the given file are not equal.
assertJsonStringNotEqualsJsonFile(string $expectedFile, string $actualJson[, string $message = '' ]) : mixed
Asserts that two given JSON encoded objects or arrays are not equal.
assertJsonStringNotEqualsJsonString(string $expectedJson, string $actualJson[, string $message = '' ]) : mixed
Asserts that a value is smaller than another value.
assertLessThan(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a value is smaller than or equal to another value.
assertLessThanOrEqual(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is finite.
assertFinite(mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is infinite.
assertInfinite(mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is nan.
assertNan(mixed $actual[, string $message = '' ]) : mixed
Asserts that a haystack does not contain a needle.
assertNotContains(mixed $needle, mixed $haystack[, string $message = '' ][, bool $ignoreCase = false ][, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : mixed
Asserts that a haystack does not contain only values of a given type.
assertNotContainsOnly(string $type, mixed $haystack[, bool $isNativeType = null ][, string $message = '' ]) : mixed
Asserts the number of elements of an array, Countable or Traversable.
assertNotCount(int $expectedCount, mixed $haystack[, string $message = '' ]) : mixed
Asserts that a variable is not empty.
assertNotEmpty(mixed $actual[, string $message = '' ]) : mixed
Asserts that two variables are not equal.
assertNotEquals(mixed $expected, mixed $actual[, string $message = '' ][, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a variable is not of a given type.
assertNotInstanceOf(string $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a variable is not of a given type.
assertNotInternalType(string $expected, mixed $actual[, string $message = '' ]) : mixed
Asserts that a condition is not false.
assertNotFalse(bool $condition[, string $message = '' ]) : mixed
Asserts that a variable is not null.
assertNotNull(mixed $actual[, string $message = '' ]) : mixed
Asserts that a string does not match a given regular expression.
assertNotRegExp(string $pattern, string $string[, string $message = '' ]) : mixed
Asserts that two variables do not have the same type and value.
assertNotSame(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Used on objects, it asserts that two variables do not reference the same object.
Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
assertNotSameSize(array<string|int, mixed>|Countable|Traversable $expected, array<string|int, mixed>|Countable|Traversable $actual[, string $message = '' ]) : mixed
Asserts that a variable is null.
assertNull(mixed $actual[, string $message = '' ]) : mixed
Asserts that an object has a specified attribute.
assertObjectHasAttribute(string $attributeName, object $object[, string $message = '' ]) : mixed
Asserts that an object does not have a specified attribute.
assertObjectNotHasAttribute(string $attributeName, object $object[, string $message = '' ]) : mixed
Asserts that a string matches a given regular expression.
assertRegExp(string $pattern, string $string[, string $message = '' ]) : mixed
Asserts that two variables have the same type and value.
assertSame(mixed $expected, mixed $actual[, string $message = '' ]) : mixed
Used on objects, it asserts that two variables reference the same object.
Assert that the size of two arrays (or `Countable` or `Traversable` objects) is the same.
assertSameSize(array<string|int, mixed>|Countable|Traversable $expected, array<string|int, mixed>|Countable|Traversable $actual[, string $message = '' ]) : mixed
Asserts that a string ends not with a given prefix.
assertStringEndsNotWith(string $suffix, string $string[, string $message = '' ]) : mixed
Asserts that a string ends with a given prefix.
assertStringEndsWith(string $suffix, string $string[, string $message = '' ]) : mixed
Asserts that the contents of a string is equal to the contents of a file.
assertStringEqualsFile(string $expectedFile, string $actualString[, string $message = '' ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a string matches a given format string.
assertStringMatchesFormat(string $format, string $string[, string $message = '' ]) : mixed
Asserts that a string matches a given format file.
assertStringMatchesFormatFile(string $formatFile, string $string[, string $message = '' ]) : mixed
Asserts that the contents of a string is not equal to the contents of a file.
assertStringNotEqualsFile(string $expectedFile, string $actualString[, string $message = '' ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : mixed
Asserts that a string does not match a given format string.
assertStringNotMatchesFormat(string $format, string $string[, string $message = '' ]) : mixed
Asserts that a string does not match a given format string.
assertStringNotMatchesFormatFile(string $formatFile, string $string[, string $message = '' ]) : mixed
Asserts that a string starts not with a given prefix.
assertStringStartsNotWith(string $prefix, string $string[, string $message = '' ]) : mixed
Asserts that a string starts with a given prefix.
assertStringStartsWith(string $prefix, string $string[, string $message = '' ]) : mixed
Evaluates a PHPUnit_Framework_Constraint matcher object.
assertThat(mixed $value, PHPUnit_Framework_Constraint $constraint[, string $message = '' ]) : mixed
Asserts that a condition is true.
assertTrue(bool $condition[, string $message = '' ]) : mixed
Asserts that two XML files are equal.
assertXmlFileEqualsXmlFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Asserts that two XML files are not equal.
assertXmlFileNotEqualsXmlFile(string $expectedFile, string $actualFile[, string $message = '' ]) : mixed
Asserts that two XML documents are equal.
assertXmlStringEqualsXmlFile(string $expectedFile, string $actualXml[, string $message = '' ]) : mixed
Asserts that two XML documents are equal.
assertXmlStringEqualsXmlString(string $expectedXml, string $actualXml[, string $message = '' ]) : mixed
Asserts that two XML documents are not equal.
assertXmlStringNotEqualsXmlFile(string $expectedFile, string $actualXml[, string $message = '' ]) : mixed
Asserts that two XML documents are not equal.
assertXmlStringNotEqualsXmlString(string $expectedXml, string $actualXml[, string $message = '' ]) : mixed
Returns a matcher that matches when the method is executed at the given $index.
at(int $index) : PHPUnit_Framework_MockObject_Matcher_InvokedAtIndex
Returns a matcher that matches when the method is executed at least once.
atLeastOnce() : PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce
Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
attribute(PHPUnit_Framework_Constraint $constraint, string $attributeName) : PHPUnit_Framework_Constraint_Attribute
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
attributeEqualTo(string $attributeName, mixed $value[, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : PHPUnit_Framework_Constraint_Attribute
Returns a PHPUnit_Framework_Constraint_Callback matcher object.
callback(callable $callback) : PHPUnit_Framework_Constraint_Callback
Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
classHasAttribute(string $attributeName) : PHPUnit_Framework_Constraint_ClassHasAttribute
Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.
classHasStaticAttribute(string $attributeName) : PHPUnit_Framework_Constraint_ClassHasStaticAttribute
Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.
contains(mixed $value[, bool $checkForObjectIdentity = true ][, bool $checkForNonObjectIdentity = false ]) : PHPUnit_Framework_Constraint_TraversableContains
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
containsOnly(string $type) : PHPUnit_Framework_Constraint_TraversableContainsOnly
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
containsOnlyInstancesOf(string $classname) : PHPUnit_Framework_Constraint_TraversableContainsOnly
Returns a PHPUnit_Framework_Constraint_Count matcher object.
countOf(int $count) : Count
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
equalTo(mixed $value[, float $delta = 0.0 ][, int $maxDepth = 10 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : PHPUnit_Framework_Constraint_IsEqual
Returns a matcher that matches when the method is executed exactly $count times.
exactly(int $count) : PHPUnit_Framework_MockObject_Matcher_InvokedCount
Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
fileExists() : PHPUnit_Framework_Constraint_FileExists
Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
greaterThan(mixed $value) : PHPUnit_Framework_Constraint_GreaterThan
Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_GreaterThan matcher object.
greaterThanOrEqual(mixed $value) : PHPUnit_Framework_Constraint_Or
Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
identicalTo(mixed $value) : PHPUnit_Framework_Constraint_IsIdentical
Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
isEmpty() : PHPUnit_Framework_Constraint_IsEmpty
Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
isFalse() : PHPUnit_Framework_Constraint_IsFalse
Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
isInstanceOf(string $className) : PHPUnit_Framework_Constraint_IsInstanceOf
Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
isJson() : PHPUnit_Framework_Constraint_IsJson
Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
isNull() : PHPUnit_Framework_Constraint_IsNull
Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
isTrue() : PHPUnit_Framework_Constraint_IsTrue
Returns a PHPUnit_Framework_Constraint_IsType matcher object.
isType(string $type) : PHPUnit_Framework_Constraint_IsType
Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
lessThan(mixed $value) : PHPUnit_Framework_Constraint_LessThan
Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.
lessThanOrEqual(mixed $value) : PHPUnit_Framework_Constraint_Or
Returns a PHPUnit_Framework_Constraint_And matcher object.
logicalAnd() : PHPUnit_Framework_Constraint_And
Returns a PHPUnit_Framework_Constraint_Not matcher object.
logicalNot(PHPUnit_Framework_Constraint $constraint) : PHPUnit_Framework_Constraint_Not
Returns a PHPUnit_Framework_Constraint_Or matcher object.
logicalOr() : PHPUnit_Framework_Constraint_Or
Returns a PHPUnit_Framework_Constraint_Xor matcher object.
logicalXor() : PHPUnit_Framework_Constraint_Xor
Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
matches(string $string) : PHPUnit_Framework_Constraint_StringMatches
Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
matchesRegularExpression(string $pattern) : PHPUnit_Framework_Constraint_PCREMatch
Returns a matcher that matches when the method is never executed.
never() : PHPUnit_Framework_MockObject_Matcher_InvokedCount
Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
objectHasAttribute(string $attributeName) : PHPUnit_Framework_Constraint_ObjectHasAttribute
onConsecutiveCalls() : PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls
Returns a matcher that matches when the method is executed exactly once.
once() : PHPUnit_Framework_MockObject_Matcher_InvokedCount
returnArgument(int $argumentIndex) : PHPUnit_Framework_MockObject_Stub_ReturnArgument
returnCallback(mixed $callback) : PHPUnit_Framework_MockObject_Stub_ReturnCallback
Returns the current object.
returnSelf() : PHPUnit_Framework_MockObject_Stub_ReturnSelf
This method is useful when mocking a fluent interface.
returnValue(mixed $value) : PHPUnit_Framework_MockObject_Stub_Return
returnValueMap(array<string|int, mixed> $valueMap) : PHPUnit_Framework_MockObject_Stub_ReturnValueMap
Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
stringContains(string $string[, bool $case = true ]) : PHPUnit_Framework_Constraint_StringContains
Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
stringEndsWith(mixed $suffix) : PHPUnit_Framework_Constraint_StringEndsWith
Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
stringStartsWith(mixed $prefix) : PHPUnit_Framework_Constraint_StringStartsWith
throwException(Exception $exception) : PHPUnit_Framework_MockObject_Stub_Exception
globalFunction() : mixed
functionCallback() : mixed
Get all HTTP header key/values as an associative array for the current request.
getallheaders() : mixed
ctype_alnum(mixed $text) : mixed
ctype_alpha(mixed $text) : mixed
ctype_cntrl(mixed $text) : mixed
ctype_digit(mixed $text) : mixed
ctype_graph(mixed $text) : mixed
ctype_lower(mixed $text) : mixed
ctype_print(mixed $text) : mixed
ctype_punct(mixed $text) : mixed
ctype_space(mixed $text) : mixed
ctype_upper(mixed $text) : mixed
ctype_xdigit(mixed $text) : mixed
ctype_alnum(mixed $text) : bool
ctype_alpha(mixed $text) : bool
ctype_cntrl(mixed $text) : bool
ctype_digit(mixed $text) : bool
ctype_graph(mixed $text) : bool
ctype_lower(mixed $text) : bool
ctype_print(mixed $text) : bool
ctype_punct(mixed $text) : bool
ctype_space(mixed $text) : bool
ctype_upper(mixed $text) : bool
ctype_xdigit(mixed $text) : bool